package entity

type Question struct {
	Id        int64  `gorm:"column:id;primary_key" json:"id"`
	Title     string `gorm:"column:title;type:varchar(255);not null" json:"title"`
	Type      int    `gorm:"column:type;type:integer;not null" json:"type"`
	Image     string `gorm:"column:image;type:varchar(255);not null" json:"image"`
	AnswerId  int64  `gorm:"column:answer_id;type:bigint;not null" json:"answer_id"`
	LevelId   int64  `gorm:"column:level_id;type:bigint;not null" json:"level_id"`
	CreatedAt int64  `gorm:"column:created_at;type:bigint;not null" json:"created_at"`
	UpdatedAt int64  `gorm:"column:updated_at;type:bigint;not null" json:"updated_at"`
}

func (q *Question) TableName() string {
	return "questions"
}
